﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<List<PostModel>>" %>
<%@ Import Namespace="FeaturesBlog.Models" %>
<%@ Import Namespace="MvcPaging"%>
<%@ Import Namespace="System.Configuration"%>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Features Blog
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% foreach (PostModel p in ViewData.Model)
        { %>
        <% Html.RenderPartial("../Controls/BlogPostUserControl", p); %>
    <% } %>
    <div class="pager">
		<%= Html.Pager(int.Parse(ConfigurationManager.AppSettings["JournalPageSize"]), (int)ViewData["CurrentPage"], (int)ViewData["PostsCount"])%>
	</div>
</asp:Content>
